Skip to main content

UnitVector

UnitVector[k] gives the two-dimensional unit vector in the kth direction.

UnitVector[n,k] gives the n-dimensional unit vector in the kth direction.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.